package cn.luyou.admin.service;

import cn.luyou.admin.entity.LoginResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import cn.luyou.admin.entity.User;

public interface UserService extends IService<User> {

    LoginResponse login(String username, String password);
    
    void register(User user);
    
    IPage<User> getUsers(Integer pageNum, Integer pageSize, String keyword);
    
    void updateUser(User user);
    
    void deleteUser(Long id);
    
    User getCurrentUser();
    
    void changePassword(Long userId, String oldPassword, String newPassword);
} 